import request from "@/utils/request";

//请假审批列表
export function LeaveAdminLists(params?: any) {
  return request.get({ url: "/approval.leave/applists", params });
}
// 我的列表
export function LeaveMyLists(params?: any) {
  return request.get({ url: "/approval.leave/lists", params });
}
// 添加请假
export function leaveAdd(params: any) {
  return request.post({ url: "/approval.leave/add", params });
}

// 编辑请假
export function leaveEdit(params: any) {
  return request.post({ url: "/approval.leave/edit", params });
}
// 消除请假
export function leaveCancle(params: any) {
  return request.post({ url: "/approval.leave/cancle", params });
}
// 删除请假
export function leaveDelete(params: any) {
  return request.post({ url: "/approval.leave/delete", params });
}

// 请假详情
export function leaveDetail(params: any) {
  return request.get({ url: "/approval.leave/detail", params });
}
/**请假审核详情 */
export function leaveAppDetail(params: any) {
  return request.get({ url: "/approval.leave/appdetail", params });
}

export function leaveAppEdit(params: any) {
  return request.get({ url: "/approval.leave/appedit", params });
}
